
	var basicTestCase = new Html5Test.TestCase({
		name: "FillRect",
		frameFunc: function(load){
			this.ctx.clearRect(0, 0, this.width, this.height);
			if (load > this.maxLoad) {
				alert("Overload!");
			}
			for (var i = 0; i < load; i++) {
				this.ctx.fillStyle = "rgba(" + this.r[i] + "," + this.g[i] + "," + this.b[i] + "," + this.alpha[i] + ")";
				this.ctx.fillRect(this.posX[i], this.posY[i], 40, 40);
				//this.ctx.strokeRect(this.posX[i], this.posY[i], 40, 40);
			}
		}
	});
	
	basicTestCase.init = function(conf) {
		this.ctx = conf.ctx;
		this.width = conf.width;
		this.height = conf.height;
		this.checkFrequency = 15;
		this.maxLoad = 10000;
		this.posX = [];
		this.posY = [];
		this.r = [];
		this.g = [];
		this.b = [];
		this.alpha = [];

		for (var i = 0; i < this.maxLoad; i++) {
			this.posX.push(randint(0, Math.floor(this.width / 40))*40);
			this.posY.push(randint(0, Math.floor(this.height / 40))*40);
			this.r.push(randint(0, 254));
			this.g.push(randint(0, 254));
			this.b.push(randint(0, 254));
			this.alpha.push(Math.random());
		}
	}

	basicTestCase.release = function() {
		this.posX = [];
		this.posY = [];
		this.r = [];
		this.g = [];
		this.b = [];
		this.alpha = [];

	}

if (!window.Html5Test.testCaseList) {
	window.Html5Test.testCaseList = [];
}
window.Html5Test.testCaseList.push(basicTestCase);
	
